package personal.lijun.skeleton.springcloud.serviceprovider.service.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import personal.lijun.skeleton.spring.springcloud.serviceprovider.data.SecurityFiltermetadata;
import personal.lijun.skeleton.spring.springcloud.serviceprovider.service.SecurityFiltermetadataService;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Auther: lijun@sstcsoft.com
 * @Date: 2019-10-12 16:29
 */
@RestController
@RequestMapping("/permission")
public class SecurityFiltermetadataController {
    @Resource
    private SecurityFiltermetadataService securityFiltermetadataService;

    /**
     * 查询所有菜单权限
     *
     * @return
     */
    @GetMapping("/getRequestConfigMappings")
    public List<SecurityFiltermetadata> getRequestConfigMappings(){
        return securityFiltermetadataService.getRequestConfigMappings();
    }
}
